import request from '@/utils/request'

// 查询业务一览列表
export function businessView(query) {
    return request({
        url: '/businessWorkbench/businessView/list',
        method: 'get',
        params: query
    })
}

export function updateBusiness(data) {
    return request({
        url: '/businessWorkbench/businessView',
        method: 'put',
        data: data
    })
}

export function bmsMenuTreeselect(query) {
    return request({
        url: '/business/menu/bmsMenuTreeselect/' + query,
        method: 'get'
    })
}

//查询业务概况
export function businessGeneral(id) {
    return request({
        url: '/businessWorkbench/businessSketch/' + id,
        method: 'get'
    })
}